﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Crossroad.Core.Models
{
    [Serializable]
    public class ImageDom
    {

        /// <summary>
        /// 图片数据（base64String）
        /// </summary>
        public string data { set; get; }

        /// <summary>
        /// 后台保存的id
        /// </summary>
        public string id { set; get; }

        /// <summary>
        /// 前台生成的key
        /// </summary>
        public string key { set; get; }

        /// <summary>
        /// 原始文件名
        /// </summary>
        public string name { set; get; }

        /// <summary>
        /// 相对路径
        /// </summary>
        public string path { set; get; }

        /// <summary>
        /// 外链地址
        /// </summary>
        public string url { set; get; }
        /// <summary>
        /// 文件后缀名
        /// </summary>
        public string suffix { set; get; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public int size { set; get; }

        /// <summary>
        /// 保存成功 1.成功,0.等待
        /// </summary>
        public short completed { set; get; }
        
    }
}
